from django.contrib import admin
from django.urls import path
from django.urls import include
from . import views
from rest_framework import routers

app_name = 'absent'

router = routers.DefaultRouter(trailing_slash=False)
router.register('absent', views.AbsentViewSet, basename='absent')

urlpatterns = [
    path('type', views.AbsentTypeViewSet.as_view(), name='absenttypes'),
    path('responser', views.ResponserView.as_view(), name='getresponser'),
] + router.urls